﻿#region Using Statements

#endregion

namespace DirectZZT.Shared.Core
{
    /// <summary>
    /// Defines mechanisms for compressing and decompressing a buffer.
    /// </summary>
    public interface ICompression
    {
        /// <summary>
        /// Compresses the data buffer.
        /// </summary>
        /// <param name="data"></param>
        /// <returns>The compressed buffer.</returns>
        byte[] Compress(byte[] data);
        /// <summary>
        /// Uncompresses the data buffer.
        /// </summary>
        /// <param name="data"></param>
        /// <returns>The uncompressed buffer.</returns>
        byte[] Decompress(byte[] data);
    }
}
